import type { PageModuleTypes } from '../types/index';

/** 活动分包 */
const modules: PageModuleTypes[] = [
  {
    path: '/',
    name: 'activity',
    navigationStyle: 'custom',
    navigationBarTitleText: '活动管理',
    enablePullDownRefresh: true,
  },
  {
    path: 'activityManage',
    name: 'activityManage',
    navigationStyle: 'custom',
    navigationBarTitleText: '活动管理',
    enablePullDownRefresh: true,
    children: [
      {
        path: 'activityManageRegisterDetail',
        name: 'activityManageRegisterDetail',
        navigationStyle: 'custom',
        navigationBarTitleText: '报名详情',
        enablePullDownRefresh: true
      },
      {
        path: 'adminSignedIt',
        name: 'adminSignedIt',
        navigationStyle: 'custom',
        navigationBarTitleText: '核验签到'
      },
      {
        path: 'activityPersonManage',
        name: 'activityPersonManage',
        navigationStyle: 'custom',
        navigationBarTitleText: '活动管理',
        enablePullDownRefresh: true,
        children: [
          {
            path: 'signUpDetail',
            name: 'signUpDetail',
            navigationStyle: 'custom',
            navigationBarTitleText: '报名详情',
            enablePullDownRefresh: false,
          },
          {
            path: 'applyForExamine',
            name: 'applyForExamine',
            navigationStyle: 'custom',
            navigationBarTitleText: '申请审核',
            enablePullDownRefresh: false,
          },
          {
            path: 'refundExamineDetail',
            name: 'refundExamineDetail',
            navigationStyle: 'custom',
            navigationBarTitleText: '取消报名申请详情',
            enablePullDownRefresh: false,
          },
          {
            path: 'activityBrowsingHistory',
            name: 'activityBrowsingHistory',
            navigationStyle: 'custom',
            navigationBarTitleText: '浏览记录',
            enablePullDownRefresh: false,
          },
          {
            path: 'activityBrowsingHistoryDetail',
            name: 'activityBrowsingHistoryDetail',
            navigationStyle: 'custom',
            navigationBarTitleText: '详细浏览记录',
            enablePullDownRefresh: false,
          },
          {
            path: 'invitationRanking',
            name: 'invitationRanking',
            navigationStyle: 'custom',
            navigationBarTitleText: '邀请排行',
            enablePullDownRefresh: false,
            backgroundColor: '#FFF'

          },
          {
            path: 'invitationRankingDetail',
            name: 'invitationRankingDetail',
            navigationStyle: 'custom',
            navigationBarTitleText: '邀请排行详情',
            enablePullDownRefresh: false,
            backgroundColor: '#FFF'

          },
          {
            path: 'signedOnBehalfOf',
            name: 'signedOnBehalfOf',
            navigationStyle: 'custom',
            navigationBarTitleText: '代签到',
          },
          {
            path: 'bigScreenManagement',
            name: 'bigScreenManagement',
            navigationStyle: 'custom',
            navigationBarTitleText: '大屏管理',
            enablePullDownRefresh: true,
          }

        ]
      },
    ]
  },
  {
    path: 'myActivity',
    name: 'myActivity',
    navigationStyle: 'custom',
    navigationBarTitleText: '我的活动',
    enablePullDownRefresh: true,
    children: [
      {
        path: 'registrationRecord',
        name: 'registrationRecord',
        navigationStyle: 'custom',
        navigationBarTitleText: '报名记录',
      }
    ]
  },

  {
    path: 'connectionSquare',
    name: 'connectionSquare',
    navigationStyle: 'custom',
    navigationBarTitleText: '人脉广场',
    enablePullDownRefresh: false,
  },

  {
    path: 'activityDetails',
    name: 'activityDetails',
    navigationStyle: 'custom',
    navigationBarTitleText: '活动详情',
    enablePullDownRefresh: true,
    children: [
      {
        path: 'activityDetailsPreview',
        name: 'activityDetailsPreview',
        navigationStyle: 'custom',
        navigationBarTitleText: '活动详情预览',
        enablePullDownRefresh: true,
      },
      {
        path: 'organizingUnitList',
        name: 'organizingUnitList',
        navigationStyle: 'custom',
        navigationBarTitleText: '举办单位',
        enablePullDownRefresh: false,
      },
      {
        path: 'activityDetailInvitationRanking',
        name: 'activityDetailInvitationRanking',
        navigationStyle: 'custom',
        navigationBarTitleText: '邀请排行',
        enablePullDownRefresh: false,
        backgroundColor: '#FFF'
      },
      {
        path: 'activityDetailInvitationRankingDetail',
        name: 'activityDetailInvitationRankingDetail',
        navigationStyle: 'custom',
        navigationBarTitleText: '邀请排行详情',
        enablePullDownRefresh: false,
        backgroundColor: '#FFF'

      }
    ]
  },
  {
    path: 'applicantsList',
    name: 'applicantsList',
    navigationStyle: 'custom',
    navigationBarTitleText: '报名情况',
    enablePullDownRefresh: true,
  },
  {
    path: 'signUpInfoConfirm',
    name: 'signUpInfoConfirm',
    navigationStyle: 'custom',
    navigationBarTitleText: '报名信息确认'
  },
  {
    path: 'gmatPage',
    name: 'gmatPage',
    navigationStyle: 'custom',
    navigationBarTitleText: '代报名',
    enablePullDownRefresh: true,
  },
  {
    path: 'admissionList',
    name: 'admissionList',
    navigationStyle: 'custom',
    navigationBarTitleText: '已签到名单',
    enablePullDownRefresh: true,
  },
  {
    path: 'registrationUnderReview',
    name: 'registrationUnderReview',
    navigationStyle: 'custom',
    navigationBarTitleText: '审核中',
    enablePullDownRefresh: true,
  },
  {
    path: 'signInPage',
    name: 'signInPage',
    navigationStyle: 'custom',
    navigationBarTitleText: '入场签名',
    children: [
      {
        name: 'selfRegistration',
        path: 'selfRegistration',
        navigationStyle: 'custom',
        navigationBarTitleText: '自主签到',
        disableScroll: true
      }
    ]
  },
  {
    path: 'attendanceCard',
    name: 'attendanceCard',
    navigationStyle: 'custom',
    navigationBarTitleText: '参会证',
  },
  {
    path: 'activitySign',
    name: 'activitySign',
    // navigationStyle: 'custom',
    navigationStyle: 'default',
    navigationBarTitleText: '请横置手机签名',
    pageOrientation: 'landscape',
    disableScroll: true
  },
  {
    path: 'addRetinue',
    name: 'addRetinue',
    navigationStyle: 'custom',
    navigationBarTitleText: '添加其他人员'
  },
  {
    path: 'activityScheduling',
    name: 'activityScheduling',
    navigationStyle: 'custom',
    navigationBarTitleText: '活动安排'
  },
  {
    path: 'activityResult',
    name: 'activityResult',
    navigationStyle: 'custom',
    navigationBarTitleText: '报名结果',
    enablePullDownRefresh: true
  },
  {
    path: 'signInResult',
    name: 'signInResult',
    navigationStyle: 'custom',
    navigationBarTitleText: '签到结果'
  },
  {
    path: 'activityRegisterForm',
    name: 'activityRegisterForm',
    navigationStyle: 'custom',
    navigationBarTitleText: '报名信息'
  },
  {
    path: 'activityRegisterDetail',
    name: 'activityRegisterDetail',
    navigationStyle: 'custom',
    navigationBarTitleText: '报名详情',
    enablePullDownRefresh: true
  },
];

export default modules;
